package com.icloud.system.boot.dto;

import com.icloud.common.core.constant.ValidateConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 角色添加入参
 */
@Data
public class AdminRoleSaveDto {
    @NotBlank(message = ValidateConstant.NOT_BLANK)
    @ApiModelProperty(value = "角色名称", required = true)
    private String name;

    @ApiModelProperty(value = "角色描述", required = false)
    private String desc;

    @NotNull(message = ValidateConstant.NOT_NULL)
    @Max(value = 1000000000, message = ValidateConstant.MAX)
    @ApiModelProperty(value = "排序值", required = true)
    private Integer sortValue;
}
